<template>
  <div>
    <el-table :data="user"  border stripe>
      <el-table-column prop="id" label="编号"></el-table-column>
      <el-table-column prop="phone" label="手机号"></el-table-column>
      <el-table-column prop="nickname" label="昵称"></el-table-column>
      <el-table-column prop="head_portrait" label="头像"></el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "shouTouXiang",
  data(){
    return {
      user:{}
    }
  },
  methods:{
    selectAll(){
      this.axios({
        method:'get',
        url:'/hero/showAll.do'
      }).then((resp)=>{
        this.heroes=resp.data
      })
    }
  },
  created() {
    this.selectAll()
  }
}
</script>

<style scoped>

</style>
